package org.blog.dao;

import org.apache.ibatis.annotations.Mapper;
import org.blog.entity.Category;
import org.blog.entity.param.CategoryParam;
import org.blog.entity.vo.CategoryVO;

import java.util.List;
import java.util.Map;

@Mapper
public interface CategoryMapper {
    int deleteByPrimaryKey(Integer categoryId);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer categoryId);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    List<CategoryVO> getCategorys(Map<String, Object> map);

    List<Category> getCategory(Map<String, Object> map);

    int updateCategory(Map<String, Object> map);


}